/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utility;


/**
 *
 * @author Admin
 */
import java.sql.Connection;
import java.sql.DriverManager;

public class DatabaseConnection {

    public static Connection getConnection(){
        Connection con = null;
        String url = "jdbc:sqlserver://SVNN121622:1433;databaseName=Recruitment";
        String user = "sa";
        String password = "fat123456";
        try {
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            con = DriverManager.getConnection(url, user, password);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return con;
    }
}
